package com.ocelot.san.form;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.faces.event.ActionEvent;

import com.ocelot.san.dto.Client;


public class ClientForm implements Serializable {

	private static final long serialVersionUID = -1608986190844602093L;
	private boolean clientSelected;
	private boolean showClients;
	private Client editClient;
	private Long toRemove;
	private Long toEdit;
	private List<Client> clients = new ArrayList<Client>(0);
	
	public ClientForm() {
		setEditClient(new Client());
	}
	
	public void toggleSelectClient(ActionEvent event) {
		setClientSelected(!clientSelected);
	}

	public boolean isClientSelected() {
		return clientSelected;
	}

	public void setClientSelected(boolean clientSelected) {
		this.clientSelected = clientSelected;
	}

	public boolean isShowClients() {
		return showClients;
	}

	public void setShowClients(boolean showClients) {
		this.showClients = showClients;
	}


	public Long getToRemove() {
		return toRemove;
	}

	public void setToRemove(Long toRemove) {
		this.toRemove = toRemove;
	}

	public Long getToEdit() {
		return toEdit;
	}

	public void setToEdit(Long toEdit) {
		this.toEdit = toEdit;
	}

	public List<Client> getClients() {
		return clients;
	}

	public void setClients(List<Client> clients) {
		this.clients = clients;
	}

	public Client getEditClient() {
		return editClient;
	}

	public void setEditClient(Client editClient) {
		this.editClient = editClient;
	}

}
